.class final Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;
.super Ljava/lang/Object;
.source "MraidViewState.java"


# static fields
.field static final DEFAULT_MASK:I = 0x2

.field static final EXPANDED_MASK:I = 0x4

.field static final HIDDEN_MASK:I = 0x1

.field static final LOADING_MASK:I = 0x8

.field static final RESIZED_MASK:I = 0x10


# instance fields
.field private mAfterLoadingStateMask:I

.field private mState:I


# direct methods
.method constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 63
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 53
    iput v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->mState:I

    .line 58
    const/4 v0, 0x2

    iput v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->mAfterLoadingStateMask:I

    .line 64
    const/16 v0, 0x8

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setFlag(I)V

    .line 65
    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setHidden(Z)V

    .line 66
    return-void
.end method

.method private hasFlag(I)Z
    .locals 1
    .parameter "mask"

    .prologue
    .line 158
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->mState:I

    and-int/2addr v0, p1

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private resetFlag(I)V
    .locals 2
    .parameter "mask"

    .prologue
    .line 144
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->mState:I

    xor-int/lit8 v1, p1, -0x1

    and-int/2addr v0, v1

    iput v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->mState:I

    .line 145
    return-void
.end method

.method private setFlag(I)V
    .locals 1
    .parameter "mask"

    .prologue
    .line 151
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->mState:I

    or-int/2addr v0, p1

    iput v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->mState:I

    .line 152
    return-void
.end method


# virtual methods
.method getAfterLoadingStateMask()I
    .locals 1

    .prologue
    .line 167
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->mAfterLoadingStateMask:I

    return v0
.end method

.method getState()Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;
    .locals 1

    .prologue
    .line 84
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->hasFlag(I)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 85
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->HIDDEN:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    .line 93
    :goto_0
    return-object v0

    .line 86
    :cond_0
    const/4 v0, 0x4

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->hasFlag(I)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 87
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->EXPANDED:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    goto :goto_0

    .line 88
    :cond_1
    const/4 v0, 0x2

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->hasFlag(I)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 89
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->DEFAULT:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    goto :goto_0

    .line 90
    :cond_2
    const/16 v0, 0x10

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->hasFlag(I)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 91
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->RESIZED:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    goto :goto_0

    .line 93
    :cond_3
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->LOADING:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    goto :goto_0
.end method

.method isHidden()Z
    .locals 2

    .prologue
    const/4 v0, 0x1

    .line 115
    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->hasFlag(I)Z

    move-result v1

    if-nez v1, :cond_0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method onPageLoaded()V
    .locals 2

    .prologue
    const/16 v1, 0x8

    .line 72
    invoke-direct {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->hasFlag(I)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 73
    invoke-direct {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->resetFlag(I)V

    .line 74
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->mAfterLoadingStateMask:I

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setFlag(I)V

    .line 76
    :cond_0
    return-void
.end method

.method setAfterLoadingStateMask(I)V
    .locals 0
    .parameter "afterLoadingStateMask"

    .prologue
    .line 176
    iput p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->mAfterLoadingStateMask:I

    .line 177
    return-void
.end method

.method setHidden(Z)V
    .locals 1
    .parameter "isHidden"

    .prologue
    const/4 v0, 0x1

    .line 102
    if-eqz p1, :cond_0

    .line 103
    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setFlag(I)V

    .line 107
    :goto_0
    return-void

    .line 105
    :cond_0
    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->resetFlag(I)V

    goto :goto_0
.end method

.method setState(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;)V
    .locals 1
    .parameter "newState"

    .prologue
    .line 124
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->HIDDEN:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    if-ne p1, v0, :cond_0

    .line 125
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setHidden(Z)V

    .line 138
    :goto_0
    return-void

    .line 127
    :cond_0
    const/4 v0, 0x0

    iput v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->mState:I

    .line 128
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->EXPANDED:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    if-ne p1, v0, :cond_1

    .line 129
    const/4 v0, 0x4

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setFlag(I)V

    goto :goto_0

    .line 130
    :cond_1
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->DEFAULT:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    if-ne p1, v0, :cond_2

    .line 131
    const/4 v0, 0x2

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setFlag(I)V

    goto :goto_0

    .line 132
    :cond_2
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;->RESIZED:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidBridgeState;

    if-ne p1, v0, :cond_3

    .line 133
    const/16 v0, 0x10

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setFlag(I)V

    goto :goto_0

    .line 135
    :cond_3
    const/16 v0, 0x8

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidViewState;->setFlag(I)V

    goto :goto_0
.end method
